/*
 * @Author: byron
 * @Date: 2021-10-25 18:35:07
 * @LastEditTime: 2021-11-05 16:42:57
 */
import { createLogger, createStore } from 'vuex'

import app from './modules/app.js'
import user from './modules/user.js'
import article from './modules/article.js'
import getters from './getters.js'

const debug = false

export default createStore({
    modules: {
        app,
        user,
        article,
    },
    getters,
    strict: debug,
    plugins: debug ? [createLogger()] : [],
})
